package com.sixth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sixth.entity.Link;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface LinkDao extends BaseMapper<Link> {
    int deleteByPrimaryKey(String linkId);

    int insert(Link record);

    int insertSelective(Link record);

    Link selectByPrimaryKey(String linkId);

    int updateByPrimaryKeySelective(Link record);

    int updateByPrimaryKey(Link record);

    List<Link> selectlinByCondition(@Param("linkName") String linkName,@Param("isDisable") Integer isDisable);

    int changeStatusByid(@Param("linkId") String linkId,@Param("isDisable") Integer isDisable);

    int addlink(@Param("id") String id,@Param("link") Link link);
}